package com.gareve.RainScene.models;

import aurelienribon.tweenengine.TweenAccessor;

public class SplashAccessor implements TweenAccessor<Splash>{

	@Override
	public int getValues(Splash target, int tweenType, float[] returnValues) {
		returnValues[0] = target.shape.height;
		return 1;
	}

	@Override
	public void setValues(Splash target, int tweenType, float[] newValues) {
		if(tweenType == 0)
			target.shape.height = newValues[0];
		else{
			target.kill();
		}
	}

}
